<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta http-equiv="X-UA-Compatible" content="IE=edge" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
  </head>
  <body>
    <div id="app" style="color: red; font-size: 16px">Hello Vue</div>
    <script src="./dist/vue.js"></script>
    <script>
      let vm = new Vue({
        el: "#app",
        // data: {
        //   msg: "hello Vue",
        //   a: { b: 10 },
        //   list: [1, 2, 3],
        //   arr: [{ a: 1 }],
        // },
        data() {
          // console.log(this);
          return {
            msg: "hello Vue",
            a: { b: 10 },
            list: [1, 2, 3],
            arr: [{ a: 1 }],
          };
        },
        props: {},
        watch: {},
      });
      console.log(vm);
      // console.log(vm._data.list.push(10));
      // console.log(vm._data.arr.push({ b: 9 }));
      // console.log(vm.msg);
    </script>
  </body>
</html>
